package com.xidian.zhiancloud.dao.syset;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.pagehelper.Page;
import com.xidian.zhiancloud.model.syset.BpmlList;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BpmlMapper extends BaseMapper<BpmlList> {

    Page<BpmlList> getBpmlList
            (@Param("companyId") Long companyId,
            @Param("bpmid") Integer bpmid);

    int addBpml(@Param("id") Long id ,@Param("data") BpmlList data);

    int detleBpml(@Param("id") String id);

    List<BpmlList> selectByIds
            (@Param("companyId") Long companyId,@Param("id") String id);

    int updateByIdAndStatus
        (@Param("id") String id,@Param("status") String status);

}
